#ifndef _SHELL_SELLGOODS_BEAN_H_
#define _SHELL_SELLGOODS_BEAN_H_

#include "Beans.h"
#include "Message.h"
using namespace std;
class SellGoods : public Bean
{
	public:
	SellGoods();
	~SellGoods();
	void reset();
	SellGoods* clone();
	//物品唯一标示
	int8 sid;
	//出售的物品id
	int32 goodsId;
	//出售类型:1元宝。2银币。3荣誉，4声望
	int8 moneyType;
	//折扣
	int8 killType;
	//出售的价格
	int32 money;
	
	bool read_from(ByteBuf& buf);
	bool write_to(ByteBuf& buf);
};

#endif
